<?php
  include "counter.php";
  pagestart();
?>
<?php pagehead("Trends in Linux registration") ?>
<body bgcolor=white>
<?php pagetop() ?>
<h1><img src="/gifs/Logo-small.png">
Trends in Linux registration</h1>
The following graphs show some comparative trends among some of the countries
at the top of the <a href="short.php">"Linux density" ranking</a>.
 Take this as a fun view!
<p>
<b>NOTE:</b> The countries picked are chosen automatically. So if the
comments (which are manually entered) seem a bit off, this is the
reason!
<?php
function names($rank, $desc='DESC') {
    $query = mysql_query('SELECT name, country FROM temp_short WHERE users >= 2 AND NOT (country LIKE \'X%\') ORDER BY userdensity '. $desc .' LIMIT '. $rank .', 5');
    if ($query == 0) {
        print('MySQL error: '. mysql_errno() .':'. mysql_error());
        die('Query for country names failed');
    }
    while ($tmp = mysql_fetch_row($query)) {
        $names[] = place_page($tmp[1], $tmp[0]);
    }
    return join(", ", $names);
}
?>
<h2>1) <?php echo names(0) ?>
</h2>
<img src="firstfive.png" alt="graph">
<br>
Apart from the quite astonishing advantage enjoyed by Antarctica (AQ),
home of a Linux-using researcher and Tux the Penguin, we can see a
meteoric rise in Danish registrations, probably due to lobbying efforts
by Denmark's largest Linux user group.
<p>
<h2>2) <?php echo names(5) ?></h2>
<img src="secondfive.png" alt="graph">
<br>
I think the Linux users in the Faeroes learned of the counter only recently... 
I have checked that the Norfolk Islander does live on the Norfolk Islands.
<p>
<h2>3) <?php echo names(10) ?>
</h2>
<img src="thirdfive.png" alt="graph">
<p>
(The "kink" in all of these curves in February 1999 is a result of the
counter being <a href="/slashdot/">mentioned on Slashdot</a>)
<h2>4) <?php echo names(15) ?>
</h2>
<img src="fourthfive.png" alt="graph">

<h2>5) <?php echo names(20) ?>
</h2>
<img src="fifthfive.png" alt="graph">
<br>
<h2>Last: <?php echo names(0, 'ASC') ?>
</h2>
<img src="lastfive.png" alt="graph">
<br>
The amazing thing about these countries is perhaps not their wide usage
of Linux, but that they get registered at all.... if one compares the
number of Linux users with the number of Internet hostnames for a country,
the ratio can be astonishingly high in a number of 3rd world countries.

<hr>
<a href="index.html">Back to the counter main page</a>
</body>
